package com.ricervcvcer.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ricervcvcer.order.entity.OrderDetailEntity;
import com.ricervcvcer.order.mapper.OrderDetailDao;
import com.ricervcvcer.order.service.OrderDetailService;
import com.ricervcvcer.order.util.PageUtils;
import com.ricervcvcer.order.util.Query;
import org.springframework.stereotype.Service;

import java.util.Map;




@Service("orderDetailService")
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailDao, OrderDetailEntity> implements OrderDetailService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderDetailEntity> page = this.page(
                new Query<OrderDetailEntity>().getPage(params),
                new QueryWrapper<OrderDetailEntity>()
        );

        return new PageUtils(page);
    }

}